<?php 
	  if(1==2){$HttpResult = new HttpResult();}
	  $HttpContentResult = $HttpResult->getHttpContentResult();
	  //Debug::print_r($HttpResult);exit();
	
	$head = new HtmlHeader($HttpContentResult->getHeader());    
	$head->addCSS(array('reset','admin','product_admin'));
	$head->addCSS('print','', 'print');
	$head->addCSS('ie',  'css/ie', 'print',true);
			
	//<!-- PROGRAMACAO JS | JQUERY  -->
	$head->addJS(array('jquery', 'masked','admin', 'product_admin'));
	
	//<!-- JQUERY UI  -->
	$head->addJS('UI', 'js/UI/js/jquery-ui-1.8.6.custom.min');
	$head->addCSS('UI','js/UI/css/smoothness/jquery-ui-1.8.6.custom');
	
	//<!-- TABLE SORTER -->
	$head->addJS('tablesorter', 'js/tablesorter/tablesorter');
	$head->addCSS('tablesorter', 'js/tablesorter/tablesorter');
	
	//<!-- UPLOADIFY -->
	$head->addJS('uploadify_swo', 'js/uploadify/swfobject');
	$head->addJS('uploadify', 'js/uploadify/jquery.uploadify.v2.1.4.min');
	$head->addCSS('uploadify', 'js/uploadify/uploadify');
	
	$head->addJS("upload");
	
	$header_html = $head->show(TRUE);
$header_html = str_replace(array("democrart", "democrArt", "Democrart", "DemocrArt"), array("expressaoartistica", "Expressão Artística", "Expressão Artística", "Expressão Artística"), $header_html);
echo $header_html;

?>
 
<body>

<div id="main">
      <?php include "view/democrart/parts/admin/header.php" ?>
      
	  <div id="main_content">
	  
	  <div id="msgBox"></div>
	  			
		<div id="box_left">
			
			<?php include "view/democrart/parts/admin/menu.php" ?>	
	   	
		 </div>
		  
		 <div id="box_right">
			<h1>Cadastrar produto</h1>
			
			<div style="clear:both">
				<form name="frmAddProduct" id="frmAddProduct" class="frm" method="post" action="<?php echo Config::getRootPath("admin/product/add") ?>">
				
					<table style="width:500px">
						<tr>
							<td >
								<label for="product_name">*Nome do produto</label><input style="width:250px" type="text" size="25" name="name" id="product_name" class="req" />
							</td>
							<td>
								<label for="product_code">*Código</label><input type="text" size="25" name="code" id="product_code" class="req" />
							</td>
						</tr>
						<tr>
							<td>
								<label>*Cores predominantes</label>
							</td>
						</tr>
						<tr>
							<td class="colors" colspan="2">
								<label><input type="checkbox" size="25" name="color[]" /><img src="<?php echo Config::getAsset("assets/img/color/blue.gif") ?>" title="" alt="" /></label>
								<label><input type="checkbox" size="25" name="color[]" /><img src="<?php echo Config::getAsset("assets/img/color/green.gif") ?>" title="" alt="" /></label>
								<label><input type="checkbox" size="25" name="color[]" /><img src="<?php echo Config::getAsset("assets/img/color/red.gif") ?>" title="" alt="" /></label>
								<label><input type="checkbox" size="25" name="color[]" /><img src="<?php echo Config::getAsset("assets/img/color/black.gif") ?>" title="" alt="" /></label>
								<label><input type="checkbox" size="25" name="color[]" /><img src="<?php echo Config::getAsset("assets/img/color/yellow.gif") ?>" title="" alt="" /></label>
							</td>
						</tr>
						<tr>
							<td class="colors" colspan="2">
								<label><input type="checkbox" size="25" name="color[]" /><img src="<?php echo Config::getAsset("assets/img/color/purple.gif") ?>" title="" alt="" /></label>
								<label><input type="checkbox" size="25" name="color[]" /><img src="<?php echo Config::getAsset("assets/img/color/pink.gif") ?>" title="" alt="" /></label>
								<label><input type="checkbox" size="25" name="color[]" /><img src="<?php echo Config::getAsset("assets/img/color/red.gif") ?>" title="" alt="" /></label>
								<label><input type="checkbox" size="25" name="color[]" /><img src="<?php echo Config::getAsset("assets/img/color/black.gif") ?>" title="" alt="" /></label>
								<label><input type="checkbox" size="25" name="color[]" /><img src="<?php echo Config::getAsset("assets/img/color/yellow.gif") ?>" title="" alt="" /></label>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<label for="description">Descrição do produto</label>
								<textarea  cols="50" rows="12" style="height:150px" name="description" id="description" class="duplo req" ></textarea>
							</td>
						</tr>
						
						<tr>
							<td colspan="2">
								<table>
									<tr>
										<td><label for="year">Ano de criação</label><input type="text" size="25" name="year" id="year" class="req" style="width:130px" /></td>
										<td><label for="original_height">Altura</label><input type="text" size="25" name="original_height" id="original_height" class="req" style="width:130px" /></td>
										<td><label for="original_width">Largura</label><input type="text" size="25" name="original_width" id="original_width" class="req" style="width:130px" /></td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td>
								<label for="type">Tipo</label>
								<select name="type" id="type" >
									<option value="" selected="selected">Selecione...</option>
									<option value="desenho">Desenho</option>
									<option value="fotografia">Fotografia</option>
									<option value="digital">Arte digital</option>
								</select>
							</td>
							<td>
								<label for="composition">Composição</label>
								<select name="composition" id="composition" >
									<option value="" selected="selected">Selecione...</option>
									<option value="diptico">Díptico</option>
									<option value="triptico">Tríptico</option>
									<option value="poliptico">Políptico</option>
								</select>
							</td>
						</tr>
						<tr>
							<td>
								<label for="artist">Artista</label>
								<select name="artist" id="artist" >
									<option value="" selected="selected">Selecione...</option>
									<option value="">Alex</option>
									<option value="">Camila Mendes</option>
									<option value="">Fernando de Azevedo</option>
									<option value="">José Santanta</option>
									<option value="">Fernanda Martinez</option>
									<option value="">Katia do Nascimento</option>
								</select>
							</td>
							<td>
								<label for="technical">Composição</label>
								<select name="technical" id="technical" >
									<option value="" selected="selected">Selecione...</option>
									<option value="acrilica">Acrílica</option>
									<option value="aquarela">Aquarela</option>
									<option value="desenho">Desenho</option>
								</select>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<ul class="lista">
									<li class="itemMain">Tema</li>
									<li><label><input type="checkbox" size="25" name="theme[]" />Abstrato</label></li>
									<li><label><input type="checkbox" size="25" name="theme[]" />Animal</label></li>
									<li><label><input type="checkbox" size="25" name="theme[]" />Natureza</label></li>
									<li><label><input type="checkbox" size="25" name="theme[]" />Abstrato</label></li>
									<li><label><input type="checkbox" size="25" name="theme[]" />Animal</label></li>
									<li><label><input type="checkbox" size="25" name="theme[]" />Natureza</label></li>
									<li><label><input type="checkbox" size="25" name="theme[]" />Cidade</label></li>
									<li><label><input type="checkbox" size="25" name="theme[]" />Dança</label></li>
									<li><label><input type="checkbox" size="25" name="theme[]" />Flores e Plantas</label></li>
									<li><label><input type="checkbox" size="25" name="theme[]" />Frutas</label></li>
									<li><label><input type="checkbox" size="25" name="theme[]" />Homem</label></li>
									<li><label><input type="checkbox" size="25" name="theme[]" />Mulher</label></li>
								</ul>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<ul class="lista">
									<li class="itemMain">Formato</li>
									<li><label><input type="checkbox" size="25" name="format[]" />Horizontal</label></li>
									<li><label><input type="checkbox" size="25" name="format[]" />Vertical</label></li>
									<li><label><input type="checkbox" size="25" name="format[]" />Quadrado</label></li>
									<li><label><input type="checkbox" size="25" name="format[]" />Panorômico</label></li>
								</ul>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<ul class="lista">
									<li class="itemMain">Estilo</li>
									<li><label><input type="checkbox" size="25" name="style[]" />Abstrato</label></li>
									<li><label><input type="checkbox" size="25" name="style[]" />Arte Conceitual</label></li>
									<li><label><input type="checkbox" size="25" name="style[]" />Arte Decorativa</label></li>
									<li><label><input type="checkbox" size="25" name="style[]" />Arte Gráfica</label></li>
									<li><label><input type="checkbox" size="25" name="style[]" />Arte Moderna</label></li>
									<li><label><input type="checkbox" size="25" name="style[]" />Contemporânea</label></li>
									<li><label><input type="checkbox" size="25" name="style[]" />Desenho</label></li>
									<li><label><input type="checkbox" size="25" name="style[]" />Expressionismo</label></li>
									<li><label><input type="checkbox" size="25" name="style[]" />Geométrico</label></li>
									<li><label><input type="checkbox" size="25" name="style[]" />Ilustração</label></li>
									<li><label><input type="checkbox" size="25" name="style[]" />Outros</label></li>
									<li><label><input type="checkbox" size="25" name="style[]" />Urban Art</label></li>
								</ul>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								
			<!-- TAMANHOS DO PRODUTO -->
			
			
		
			
			<span class="itemMain">Tamanhos do produto</span>
			
			<a id="newSize" style="float: right;margin: 10px 5px;" href="<?php echo Config::getRootPath("admin/product/insertSize") ?>" class="button">Adicionar tamanho</a>
			
			<div style="clear:both">
				<span class="count">1 registro(s)</span>
				<table class="tablesorter">
					<thead>
						<tr>
							<th>SKU</th>
							<th>Estoque</th>
							<th>Largura(cm)</th>
							<th>Altura(cm)</th>
							<th>Editar</th>
							<th>Exluir</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td>E33F78</td>
							<td class="ico">200</td>
							<td class="ico">300</td>
							<td class="ico">400</td>
							<td class="ico"><a href="<?php echo Config::getRootPath("admin/product/updateSize/id.1") ?>">
							<img id="editSize1" src="<?php echo Config::getAsset("assets/img/icons/edit.jpg");?>" alt="Editar" title="" /></a></td>
							<td class="ico"><img id="delSize1" src="<?php echo Config::getAsset("assets/img/icons/delete.jpg");?>" alt="Excluir" title="" /></td>
						</tr>
						<tr>
							<td>P453F88</td>
							<td class="ico">10</td>
							<td class="ico">300</td>
							<td class="ico">500</td>
							<td class="ico"><a href="<?php echo Config::getRootPath("admin/product/updateSize/id.2") ?>">
							<img id="editSize2" src="<?php echo Config::getAsset("assets/img/icons/edit.jpg");?>" alt="Editar" title="" /></a></td>
							<td class="ico"><img id="delSize2" src="<?php echo Config::getAsset("assets/img/icons/delete.jpg");?>" alt="Excluir" title="" /></td>
						</tr>
						
					</tbody>
				</table>
			</div>
	
					</td>
						</tr>
						<tr>
							
							<td colspan="2">
								<span class="itemMain">Imagem do produto</span>
								<table>
									<tr>
										<td><img class="foto" src="<?php echo Config::getAsset("assets/img/sem_imagem.jpg") ?>" alt="" title="" /></td>
									</tr>
									<tr>
										<td style="text-align:center"><input type="file" name="foto" id="upload_photo" /></td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<a style="float: right;margin: 10px 0;" href="#" class="button submit">Cadastar produto</a>
							</td>
						</tr>
					</table>

				</form>

			</div>
		
		</div>
		
		</div>
					
			
			<!-- FIM DO QUADRO -->
	
	</div>
	
</body>
</html>
